using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.TestDrivens;
using Pixysoft.Framework.Configurations;

namespace Pixysoft.Framework.Configurations.TestCases
{
    [TestDriven(TestDrivenType.IntegrationTest, "HtmlManager")]
    class UnitTest_014_HtmlManager
    {
     static IAssert assert = Assert.New(true);

        [TestStart]
        public static bool TestCaseStart()
        {

            return true;
        }

        [TestStop]
        public static void TestCaseStop()
        {
        }

        [TestStateSave]
        public static ITestDrivenDocument TestCaseStateSave()
        {
            return assert.Document;
        }

        [TestCase("Create")]
        public static void TestCase_000_Create()
        {
            

            Assert.Call(UnitTest_007_HtmlDocument.TestCase_000_Serialize);

            IHtmlDocument doc = Assert.Cache.Pop<IHtmlDocument>();

            string content = doc.Serialize();
            assert.Write(content);

            doc = HtmlManager.Deserialize(content);
            assert.IsNotNull(doc);

            string nodetext = doc.Node[0].Serialize();
            assert.Write(nodetext);
            IHtmlNode node = HtmlManager.DeserializeFragment(nodetext);
            assert.IsNotNull(node);

        }

        [TestCase("Import")]
        public static void TestCase_001_Import()
        {
            


            // test case for HtmlManager.Import;

        }

        [TestCase("Deserialize")]
        public static void TestCase_002_Deserialize()
        {
            


            // test case for HtmlManager.Deserialize;

        }

        [TestCase("DeserializeFragment")]
        public static void TestCase_003_DeserializeFragment()
        {
            


            // test case for HtmlManager.DeserializeFragment;

        }

    }
}
